#!/bin/bash

for i in `kubectl get pod -owide -A|grep $1|awk '{print $2}'`
do
  kubectl top pod -A --no-headers|grep $i|sort -k 4 -hr
done
